<!DOCTYPE html>
<html lang="en">
{include file="public/head" /}
  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <!-- menu -->
        {include file="public/menu" /}
        <!-- menu -->
        <!-- top navigation -->
        {include file="public/top" /}
        <!-- /top navigation -->

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
              <div class="title_left">
                <h3>管理员</h3>
              </div>
            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <!--content-->
                <div class="x_panel">
                  <div class="x_title">
                    <h2>管理员 <small>list admin</small></h2>
                    <ul class="nav navbar-right panel_toolbox">
                      <li><button type="button" class="btn btn-success btn-xs" onclick="window.location.href='{:url('admin/Admin/add')}'">添加管理员</button>
                      </li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content table-responsive">
                    <br>
                    <table class="table table-hover">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>用户名</th>
                                <th>状态</th>
                                <th>注册时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            {volist name="list" id="vo"}
                            <tr>
                                <td>{$vo.id}</td>
                                <td><span>{$vo.account}</span></td>

                                <td>{eq name="vo.status" value="1"}
                                    <span class="btn btn-info">正常</span>
                                    {else/}
                                    <span class="btn btn-danger">禁用</span>
                                    {/eq}
                                </td>
                                <td>{$vo.create_time}</td>
                                <td>
                                    <button class="btn btn-danger" onclick="window.location.href='{:url('admin/Admin/ban','id='.$vo.id)}'">禁用</button>
                                    <button class="btn btn-warning" onclick="window.location.href='{:url('admin/Admin/edit','id='.$vo.id)}'">编辑</button>
                                </td>
                            </tr>
                            {/volist}
                        </tbody>
                    </table>
                    <!--分页-->
                    <div class="text-center">
                        <ul class="pagination" id="user-page">
                            {$list->render()}
                        </ul>
                    </div>
                    <!--分页-->
                  </div>
                </div>
                <!--content-->
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->
        <!-- footer content -->
        {include file="public/footer" /}
        <!-- /footer content -->
      </div>
    </div>
    <!-- script -->
    <!-- jQuery -->
    <script src="__ADMIN__/vendors/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="__ADMIN__/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="__ADMIN__/vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="__ADMIN__/vendors/nprogress/nprogress.js"></script>
    <!-- Custom Theme Scripts -->
    <script src="__ADMIN__/build/js/custom.min.js"></script>
    <!-- script -->
  </body>
</html>
